<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org" >
<meta charset="utf-8">
<head th:include="common/include :: header"></head>
<body class="gray-bg">
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <form class="form-horizontal m-t" id="roleInfoForm">
            <div class="row">
                <div class="col-sm-6 b-r">

                    <input id="id" name="id" type="hidden" th:value="${role.id}">

                    <div class="form-group" underline="true">
                        <label class="col-sm-3 control-label">角色名</label>
                        <div class="col-sm-6">
                            <input id="name" name="name" class="form-control" type="text" readonly="readonly" th:value="${role.name}">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>

                    <div class="form-group" underline="true">
                        <label class="col-sm-3 control-label">别名</label>
                        <div class="col-sm-6">
                            <input id="tips" name="tips" class="form-control" type="text" th:value="${role.tips}">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>

                    <div class="form-group">
                        <div class="col-sm-6 col-sm-offset-3">
                            <button type="submit" class="btn btn-primary" icon="fa-eraser">提交</button>
                            <button class="btn btn-danger"  icon="fa-eraser" onclick="fclose()">取消</button>
                        </div>
                    </div>

                </div>

                <div class="col-sm-6 b-r">
                    <div class="form-group" underline="true">
                        <label class="col-sm-3 control-label">部门</label>
                        <div class="col-sm-8">
                            <input id="deptid" name="deptid" class="hidden" th:value="${role.deptid}">
                            <input id="deptName" name="deptName" class="form-control" type="text"
                                   style="cursor: pointer;" onclick="openDept()"
                                   readonly="readonly" placeholder="所属部门" th:value="${deptName}">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>

                    <div class="form-group"  underline="true">
                        <label class="col-sm-3 control-label">角色</label>
                        <div class="col-sm-8">
                            <input id="parentid" name="parentid" class="hidden" th:value="${role.parentid}">
                            <input id="pRoleName" name="pRoleName" class="form-control" type="text"
                                   style="cursor: pointer;" onclick="openRole()"
                                   readonly="readonly" placeholder="上级角色" th:value="${pRoleName}">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>

                </div>
            </div>
        </form>
    </div>
</div>

<div th:include="common/include::footer"></div>
<script type="text/javascript" th:src="@{/project/role/role_edit.js}"></script>
</body>
</html>